
ALL = rwtest mmaptest ictltest timerctrl
PWD := $(shell pwd)
CFLAGS += -std=c11

all: $(ALL)

ictltest: ictltest.c
	$(CC) $(CFLAGS) -I$(PWD)/.. -o ./bin/$@ $<

rwtest: rwtest.c
	$(CC) $(CFLAGS) -I$(PWD)/.. -o ./bin/$@ $<

mmaptest: mmaptest.c
	$(CC) $(CFLAGS) -I$(PWD)/.. -o ./bin/$@ $<

timerctrl: timerctrl.c
	$(CC) $(CFLAGS) -I$(PWD)/.. -o ./bin/$@ $<

.PHONY: clean

clean:
	rm -f $(addprefix bin/, $(ALL))
